#include <iostream>
#include <cstdio>
using namespace std;

int main()
{
	double C, F = 0;
	cin >> F;
	C = 5 * (F - 32) / 9;
	printf("%.5f\n", C);
	return 0;
}




